package com.fangyi.yunmusic.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;
import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "com.fangyi.yunmusic.elasticsearch")
@PropertySource("classpath:elasticsearch.properties")
public class ElasticSearchConfig {

    private Map<String, String> repositoryMap;
    private Map<String, String> documentMap;

    public Map<String, String> getRepositoryMap() {
        return repositoryMap;
    }

    public void setRepositoryMap(Map<String, String> repositoryMap) {
        this.repositoryMap = repositoryMap;
    }

    public Map<String, String> getDocumentMap() {
        return documentMap;
    }

    public void setDocumentMap(Map<String, String> documentMap) {
        this.documentMap = documentMap;
    }
}
